#pragma once
#include <QObject>
#include <osg/ref_ptr>
#include <string>

class OsgCapture;
class CameraCaptureHandler;
class MainService : public QObject
{
public:

	static MainService* instance();

	void captureStart();
	void captureStop();
	void captureOneImage(std::string path,int type=0);
	void captureImportPOS(std::string path);
	void captureStart_POS();

	void initScene();

protected:
	osg::ref_ptr<OsgCapture> _osgCapture;
	osg::ref_ptr<CameraCaptureHandler> _cameraCapture;
};

